#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QPushButton *button = new QPushButton(this);

    button->setText("cf");
    button->move(100,200);

    connect(button,&QPushButton::clicked,this,[=](){
        qDebug() << "Lamda done";
        button->move(300,400);
    });
}

Widget::~Widget()
{
    delete ui;
}

